<?php $form->setDefaults($filter->array); ?>

<?php
	echo jq_form_remote_tag(
		array(
			'url'      => 'usuarios/filter',
 			'update'   => 'list'
		),
		array(
			'name' => 'form_filer_usuarios',
			'id' => 'form_filer_usuarios'
		)
	);
?>

<?php echo input_hidden_tag('filtro', '1'); ?>

<table class="form">
	<tr><th colspan="2" class="title">Filtro</th></tr>
    <tr>
        <th><?php echo $form['id_usuario']->renderLabel() ?></th>
        <td>
        	<?php
        		echo $form['id_usuario']->render(
        			array(
        				'name' => 'filter[id_usuario]'
        			)
        		)
        	?>
        </td>
    </tr>
    <tr>
        <th><?php echo $form['id_usuario_pai']->renderLabel() ?></th>
        <td>
        	<?php
        		echo $form['id_usuario_pai']->render(
        			array(
        				'name' => 'filter[id_usuario_pai]'
        			)
        		)
        	?>
        </td>
    </tr>
    <tr>
        <th><?php echo $form['no_usuario']->renderLabel() ?></th>
        <td>
        	<?php
        		echo $form['no_usuario']->render(
        			array(
        				'name' => 'filter[no_usuario]'
        			)
        		)
        	?>
        </td>
    </tr>
    <tr>
        <th><?php echo $form['nu_cpf']->renderLabel() ?></th>
        <td>
        	<?php
        		echo $form['nu_cpf']->render(
        			array(
        				'name' => 'filter[nu_cpf]'
        			)
        		)
        	?>
        </td>
    </tr>
    <tr>
        <th><?php echo $form['sobrenome']->renderLabel() ?></th>
        <td>
        	<?php
        		echo $form['sobrenome']->render(
        			array(
        				'name' => 'filter[sobrenome]'
        			)
        		)
        	?>
        </td>
    </tr>
    <tr>
        <th><?php echo $form['email']->renderLabel() ?></th>
        <td>
        	<?php
        		echo $form['email']->render(
        			array(
        				'name' => 'filter[email]'
        			)
        		)
        	?>
        </td>
    </tr>
    <tr>
        <th><?php echo $form['nu_ddd_tel']->renderLabel() ?></th>
        <td>
        	<?php
        		echo $form['nu_ddd_tel']->render(
        			array(
        				'name' => 'filter[nu_ddd_tel]'
        			)
        		)
        	?>
        </td>
    </tr>
    <tr>
        <th><?php echo $form['nu_tel']->renderLabel() ?></th>
        <td>
        	<?php
        		echo $form['nu_tel']->render(
        			array(
        				'name' => 'filter[nu_tel]'
        			)
        		)
        	?>
        </td>
    </tr>
    <tr>
        <th><?php echo $form['st_estado_civil']->renderLabel() ?></th>
        <td>
        	<?php
        		echo $form['st_estado_civil']->render(
        			array(
        				'name' => 'filter[st_estado_civil]'
        			)
        		)
        	?>
        </td>
    </tr>
    <tr>
        <th><?php echo $form['sexo']->renderLabel() ?></th>
        <td>
        	<?php
        		echo $form['sexo']->render(
        			array(
        				'name' => 'filter[sexo]'
        			)
        		)
        	?>
        </td>
    </tr>
    <tr>
        <th><?php echo $form['dt_nascimento']->renderLabel() ?></th>
        <td>
        	<?php
        		echo $form['dt_nascimento']->render(
        			array(
        				'name' => 'filter[dt_nascimento]'
        			)
        		)
        	?>
        </td>
    </tr>
    <tr>
        <th><?php echo $form['groups_list']->renderLabel() ?></th>
        <td>
        	<?php
        		echo $form['groups_list']->render(
        			array(
        				'name' => 'filter[groups_list]'
        			)
        		)
        	?>
        </td>
    </tr>
    <tr>
        <th><?php echo $form['permissions_list']->renderLabel() ?></th>
        <td>
        	<?php
        		echo $form['permissions_list']->render(
        			array(
        				'name' => 'filter[permissions_list]'
        			)
        		)
        	?>
        </td>
    </tr>
	<tr>
		<td colspan="2" align="right">
			<input type="submit" value=":: Filtrar ::" />
			&nbsp;
			<?php
    			echo link_to(
    				':: Limpar ::',
    				$sf_context->getModuleName().'/filter',
    				array('class'=>'btn btn-info')
    			);
			?>
		</td>
	</tr>
</table>
</form>